<!--
  Generated template for the LoginPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<!--<ion-header>

  <ion-navbar>
    <ion-title>登录</ion-title>
  </ion-navbar>

</ion-header>-->

<ion-content id="conBg" [ngStyle]="loginStyle">
    <!----><div style="width: 80%;margin: 0 auto">
        <p style="color:white;font-size: 5rem;font-family: 'Roboto';font-weight: 800; ">欢迎使用</p>
        <p  style="margin-left:0rem;color:white;font-size: 2rem;font-family: 'Roboto';font-weight: bold;margin-top: -4rem ">内控系统</p>
    </div>
    <div class="portCon" (click)="settingHandler()"><label>端口设置</label></div>
    <div class="loginCon"  *ngIf="loginType==='1'">
        <div ion-item class="line" no-lines >
            <ion-input type="text" placeholder="请输入手机号码" [(ngModel)]="loginPhoneInfo.phoneNumber"></ion-input>
        </div>
        <div ion-item no-lines class="line" >
            <ion-input item-left=""  type="password" placeholder="请输入验证码" [(ngModel)]="loginPhoneInfo.code"></ion-input>
            <button ion-button clear [disabled]="disabled" style="color: white" item-end="" (click)="getVerfiyCode()">
                {{codeText}}
            </button>
        </div>
    </div>
     <div class="loginCon"  *ngIf="loginType==='0'">
        <div ion-item class="line" no-lines >
            <ion-label>
                <img src="./assets/imgs/account.png" >
            </ion-label>
            <ion-input type="text" placeholder="请输入用户名" [(ngModel)]="loginInfo.loginId"></ion-input>
        </div>
        <div ion-item no-lines class="line" >
            <ion-label>
                <img src="./assets/imgs/pwd.png">
            </ion-label>
            <ion-input type="password" placeholder="请输入密码" [(ngModel)]="loginInfo.password"></ion-input>
        </div>
         <p class="change_login_p">
             <input [(ngModel)]="loginInfo.reader" style="margin-bottom: 2px;vertical-align: middle;" type="checkbox"/>
             我已阅读并同意
             <span style="color: aqua;"  (click)="showContent()"><a href="#" style="color: aqua;text-decoration-line:none;">《隐私政策》</a></span>
         </p>
    </div>

    <div class="buttonDiv" (click)="login()">
        登录
    </div>

    <p class="change_login_p" *ngIf="loginType ==='1'"  (click)="changeLogin('0')">使用密码登录</p>
    <!--
    <p class="change_login_p" *ngIf="loginType ==='0'" (click)="changeLogin('1')">使用手机号登录</p>
    -->
    <!--<label class="setting" (click)="settingHandler()">设置</label>-->
</ion-content>
